import PhysicalShape2D from "./PhysicalShape2D";
import Point2D from "../Point/Point2D";

export default class Circular extends PhysicalShape2D {
    /**
     * @param r {number}
     * @param centre {Point2D=}
     * @param angle {number=}
     */
    constructor(r, centre = new Point2D(0, 0), angle = 0) {
        super(centre, angle);
        this.r = r;
    }


    getAnglePadding(angle) {
        return this.r;
    }

    getTouchLineFaceAngel(shape) {
        return (this.centre['getDegFromAnotherPoint'](shape.centre) + 90) % 360;
    }
}